package com.clarence.dada.modular.system.user.entity.resp;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 剪裁图片dto传输实体
 *
 * @author GD
 * @since 2021/7/5 14:10
 */
@Data
@AllArgsConstructor
@Schema(title = "系统拖拽验证码响应实例")
public class DragCaptchaImageResp {

    /**
     * 本次验证码缓存的key
     */
    @Schema(title = "本次验证码缓存的key", example = "reqIdKey")
    private String key;

    /**
     * 剪裁后的源图片（base64编码）
     */
    @Schema(title = "剪裁后的源图片（base64编码）", example = "base64:image:xxx")
    private String srcImage;

    /**
     * 剪裁的小拼图图片（base64编码）
     */
    @Schema(title = "剪裁的小拼图图片（base64编码）", example = "base64:image:xxx")
    private String cutImage;

    /**
     * x轴坐标
     */
    @Schema(title = "x轴坐标", example = "300")
    private Integer locationX;

    /**
     * y轴坐标
     */
    @Schema(title = "y轴坐标", example = "300")
    private Integer locationY;

    public DragCaptchaImageResp(String srcImage, String cutImage, int locationX, int locationY) {
        this.srcImage = srcImage;
        this.cutImage = cutImage;
        this.locationX = locationX;
        this.locationY = locationY;
    }

}